<?php
/**
 * Lists of users who have a relationship with vars['entity']
 *
 * @uses $vars['entity']
 */ 
 
$org = get_entity(get_input('o'));
$users = $org->getEntitiesFromRelationship('org_admin');
?>
<br>
<label for="f1">
	Agregar administradores
	<?php 
	echo elgg_view("input/autocomplete",
	array
	(
		"value" => '',
		"id" => 'f1',
		"name" => 'admin',
		"match_on" => "users",
	));
	?>
</label>

<div style="height:100px;"></div>

<?php
echo elgg_view('input/hidden',array('value' => get_input('o'), 'name' => 'o'));
echo elgg_view('input/submit',array('value' => 'Guardar', 'name' => 'save')); 
?>